using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SeataNet.Core.Common;

namespace SeataNet.Core.Model
{
    /// <summary>
    /// 分支事务结果
    /// </summary>
    public class BranchResult
    {
        /// <summary>
        /// 分支事务ID
        /// </summary>
        public long BranchId { get; set; }
        
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; }
        
        /// <summary>
        /// 错误消息
        /// </summary>
        public string Message { get; set; }
        
        /// <summary>
        /// 分支状态
        /// </summary>
        public BranchStatus Status { get; set; }
    }
}